

import { showToast, showLoadingToast, showSuccessToast, showFailToast, closeToast } from 'vant';


export function ShowLoading(msg = '加载中') {
    closeToast()
    showLoadingToast({
        message: msg,
        forbidClick: true,
    });
}

export function ShowSuccess(msg = '成功') {
    closeToast()
    showSuccessToast({
        message: msg,

    });
}

export function ShowError(msg = '失败') {
    closeToast()
    showFailToast({
        message: msg,

    });
}

export function ShowMsg(msg = '提示') {
    closeToast()
    showToast({
        message: msg,

    });
}